/**
 * 
 */
package com.gosophia.conferenceManagement.jbpm;

import java.util.List;

import com.gosophia.taskManagement.entity.Job;


/**
 * 功能：节点配置类      
 * @author zhangdongsheng
 * @since  2011-3-24
 *  Copyright (c) 2010 Gosophia corporation All Rights Reserved
 */
public class NodeConfiguration {
//   //jobtype  
//    private String jobType;
//  /**任务状态*/
//    private String jobState;
//  /**详细url*/
//    private String detailURL;
//  /**处理url*/
//    private String handlerURL;
//    /**是否可取回*/
//    private boolean getBackAble;
    
//    private Map<String,String> handleCommands;//节点上的transitionName和missionStatus的映射
//    
//public String getJobType() {
//    return jobType;
//}
//public String getJobState() {
//    return jobState;
//}
//public String getDetailURL() {
//    return detailURL;
//}
//public String getHandlerURL() {
//    return handlerURL;
//}
//public void setJobType(String jobType) {
//    this.jobType = jobType;
//}
//public void setJobState(String jobState) {
//    this.jobState = jobState;
//}
//public void setDetailURL(String detailURL) {
//    this.detailURL = detailURL;
//}
//public void setHandlerURL(String handlerURL) {
//    this.handlerURL = handlerURL;
//}
//public boolean isGetBackAble() {
//    return getBackAble;
//}
//public void setGetBackAble(boolean getBackAble) {
//    this.getBackAble = getBackAble;
//}
//public Map<String,String> getHandleCommands() {
//    if(handleCommands==null)return new HashMap();
//    return handleCommands;
//}
//public void setHandleCommands(Map<String,String> handleCommands) {
//    this.handleCommands = handleCommands;
//}
    private final String UNDEFINE_BUS_SECTION="undefine_bus_section";
    /**节点上job之间的关系*/
    private String jobRelation;

    /**节点上的job配置*/
    private List<JobConfiguration> jobConfs;
    /**节点所处的业务环节*/
    private String bsSection;
    public List<JobConfiguration> getJobConfs() {
        return jobConfs;
    }

    public void setJobConfs(List<JobConfiguration> jobConfs) {
        this.jobConfs = jobConfs;
    } 
    
	public String getJobRelation() {
		if(jobRelation==null){
			return Job.JOB_AFTERFINISH_NORMAL;
		}
		return jobRelation;
	}

	public void setJobRelation(String jobRelation) {
		this.jobRelation = jobRelation;
	}

    public String getBsSection() {
         if(bsSection==null)return UNDEFINE_BUS_SECTION;
        return bsSection;
    }

    public void setBsSection(String bsSection) {
        this.bsSection = bsSection;
    } 
     

}
